/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package jclaimtest;

import elaborate.tool.messenger.Message;
import elaborate.tool.messenger.MessengerSender;
import elaborate.tool.messenger.StringMessage;
import elaborate.tool.messenger.yahoo.YahooMessengerConnection;

/**
 *
 * @author lendle
 */
public class Test2 {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) throws Exception{
        // TODO code application logic here
        YahooMessengerConnection conn=new YahooMessengerConnection();
        conn.connect("cherry8620", "len1028");
        MessengerSender sender=conn.getSender();
        sender.sendMessage("cherry8620", new Message[]{new StringMessage("hahaha"), new StringMessage("中文測試123456 :))")});
        //sender.sendMessage("cherry8620", new Message[]{new StringMessage("中文測試 123456 :))")});
        conn.disconnect();
    }
}
